package com.tobby.camelinaction;

import java.util.List;

/**
 * 
 * @author ll00252
 * @version $Revision$
 */
public class Customer {

	private int id;

	private String name;

	private List<Department> departments;

	public Customer(int id, String name, List<Department> departments) {
		this.id = id;
		this.name = name;
		this.departments = departments;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Department> getDepartments() {
		return departments;
	}

	public void setDepartments(List<Department> departments) {
		this.departments = departments;
	}

	public String toString() {
		return "Customer " + id + ", name";
	}

}
